package com.xiaoq.shop.vo;

import com.xiaoq.shop.dto.TagsDTO;
import com.xiaoq.shop.entity.LikeEntity;
import com.xiaoq.shop.entity.SKUEntity;
import com.xiaoq.shop.entity.SPUReviewEntity;
import java.util.List;

/**
 * Created by qudongxin520 on 2016/9/23.
 */
public class SPUVO{

    private String id;
    private Long createdAt;
    private Long updatedAt;
    private String userId;
    //spu属性
    private String cornershopId;//小店id
    private List<String> slidingImageUrls;  //商品详情页的顶部轮播图片,一般会每个款式、颜色会选择一副图片,但是一般不超过4幅图片
    private String spuName;//spu名称,即商品名称
    private String spuCode;//spu编码,即商品编码
    private String catalogCode; //类目编码
    private String catalogName; //类目名称
    private String spuCatalogCode; //spu分类编码
    private String spuCatalogName; //spu分类名称
    private String brandCode; //品牌编码
    private String brandName; //品牌名称
    private String description; //商品描述
    private float expressFee = 0f;  //运费,目前只支持商家全包,即运费为0
    private List<TagsDTO> tags; //商品标签
    private int  imageTextIsExist; //1 存在 0不存在
    //sku属性
    private List<SKUEntity> skus;

    private List<SPUReviewEntity> spuReviews;

    private int totalStocks;
    private String displayImageUrl;


    //spu详情页面展示
    private double price;//原价
    private double lowestPrice;//sku最低价
    private String skuCode; //显示价格的skuCode
    private int promotionState;//促销类型: 0原始价格,1微团购,2限时折扣,3店长推荐


    //单品推荐复用vo字段如下
    private String  recommendTitle;
    private String highlights; //亮点特色 or 推荐理由
    private String beSuitedFor; //适合
    private String designStyle; //设计风格


    //赞
    private long likeNum;
    //我是否喜欢
    private int isLike;
    //点赞的人的列表
    private List<LikeEntity> likeList;


    //好评度 平均星级   评论数量
    private String praiseDegree ;
    private int avgStarts;
    private long viewNum;

    private String shareUrl = "https://huishenghuo.info/product?spuCode=";

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Long createdAt) {
		this.createdAt = createdAt;
	}

	public Long getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Long updatedAt) {
		this.updatedAt = updatedAt;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCornershopId() {
		return cornershopId;
	}

	public void setCornershopId(String cornershopId) {
		this.cornershopId = cornershopId;
	}

	public List<String> getSlidingImageUrls() {
		return slidingImageUrls;
	}

	public void setSlidingImageUrls(List<String> slidingImageUrls) {
		this.slidingImageUrls = slidingImageUrls;
	}

	public String getSpuName() {
		return spuName;
	}

	public void setSpuName(String spuName) {
		this.spuName = spuName;
	}

	public String getSpuCode() {
		return spuCode;
	}

	public void setSpuCode(String spuCode) {
		this.spuCode = spuCode;
	}

	public String getCatalogCode() {
		return catalogCode;
	}

	public void setCatalogCode(String catalogCode) {
		this.catalogCode = catalogCode;
	}

	public String getCatalogName() {
		return catalogName;
	}

	public void setCatalogName(String catalogName) {
		this.catalogName = catalogName;
	}

	public String getSpuCatalogCode() {
		return spuCatalogCode;
	}

	public void setSpuCatalogCode(String spuCatalogCode) {
		this.spuCatalogCode = spuCatalogCode;
	}

	public String getSpuCatalogName() {
		return spuCatalogName;
	}

	public void setSpuCatalogName(String spuCatalogName) {
		this.spuCatalogName = spuCatalogName;
	}

	public String getBrandCode() {
		return brandCode;
	}

	public void setBrandCode(String brandCode) {
		this.brandCode = brandCode;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public float getExpressFee() {
		return expressFee;
	}

	public void setExpressFee(float expressFee) {
		this.expressFee = expressFee;
	}

	public List<TagsDTO> getTags() {
		return tags;
	}

	public void setTags(List<TagsDTO> tags) {
		this.tags = tags;
	}

	public int getImageTextIsExist() {
		return imageTextIsExist;
	}

	public void setImageTextIsExist(int imageTextIsExist) {
		this.imageTextIsExist = imageTextIsExist;
	}

	public List<SKUEntity> getSkus() {
		return skus;
	}

	public void setSkus(List<SKUEntity> skus) {
		this.skus = skus;
	}

	public List<SPUReviewEntity> getSpuReviews() {
		return spuReviews;
	}

	public void setSpuReviews(List<SPUReviewEntity> spuReviews) {
		this.spuReviews = spuReviews;
	}

	public int getTotalStocks() {
		return totalStocks;
	}

	public void setTotalStocks(int totalStocks) {
		this.totalStocks = totalStocks;
	}

	public String getDisplayImageUrl() {
		return displayImageUrl;
	}

	public void setDisplayImageUrl(String displayImageUrl) {
		this.displayImageUrl = displayImageUrl;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getLowestPrice() {
		return lowestPrice;
	}

	public void setLowestPrice(double lowestPrice) {
		this.lowestPrice = lowestPrice;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}

	public int getPromotionState() {
		return promotionState;
	}

	public void setPromotionState(int promotionState) {
		this.promotionState = promotionState;
	}

	public String getRecommendTitle() {
		return recommendTitle;
	}

	public void setRecommendTitle(String recommendTitle) {
		this.recommendTitle = recommendTitle;
	}

	public String getHighlights() {
		return highlights;
	}

	public void setHighlights(String highlights) {
		this.highlights = highlights;
	}

	public String getBeSuitedFor() {
		return beSuitedFor;
	}

	public void setBeSuitedFor(String beSuitedFor) {
		this.beSuitedFor = beSuitedFor;
	}

	public String getDesignStyle() {
		return designStyle;
	}

	public void setDesignStyle(String designStyle) {
		this.designStyle = designStyle;
	}

	public long getLikeNum() {
		return likeNum;
	}

	public void setLikeNum(long likeNum) {
		this.likeNum = likeNum;
	}

	public int getIsLike() {
		return isLike;
	}

	public void setIsLike(int isLike) {
		this.isLike = isLike;
	}

	public List<LikeEntity> getLikeList() {
		return likeList;
	}

	public void setLikeList(List<LikeEntity> likeList) {
		this.likeList = likeList;
	}

	public String getPraiseDegree() {
		return praiseDegree;
	}

	public void setPraiseDegree(String praiseDegree) {
		this.praiseDegree = praiseDegree;
	}

	public int getAvgStarts() {
		return avgStarts;
	}

	public void setAvgStarts(int avgStarts) {
		this.avgStarts = avgStarts;
	}

	public long getViewNum() {
		return viewNum;
	}

	public void setViewNum(long viewNum) {
		this.viewNum = viewNum;
	}

	public String getShareUrl() {
		return shareUrl;
	}

	public void setShareUrl(String shareUrl) {
		this.shareUrl = shareUrl;
	}

}
